<?php
$toolbar    =new ToolBarHelper($act);
$toolbar->setSubmitAjax(true);

if($act=="add")
{
    $toolbar->SetTitle('[Banner]' );
    $toolbar->Back(getUrlBack());
    $toolbar->Apply();
    $toolbar->Save();
}
else if($act=="edit")
{
    $toolbar->SetTitle('[Edit Banner]' );
    $toolbar->Back(getUrlBack());
    $toolbar->Apply();
    $toolbar->Save();
}else
{
    $toolbar->setSubmitAjax(false);
    $toolbar->Delete();
    $toolbar->Apply();
    $toolbar->addNew('add','New','id='.$id);
}
?>